package cn.stylefeng.guns.modular.finance.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author allen
 * @date 2021/4/11 23:12
 * @version 1.0
 */

/**
 * 财务中心的采购结算单
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "finance_purchase_settlement_order_item")
public class FinancePurchaseSettlementOrderItemEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 采购结算单ID
     */
    @TableField(value = "purchase_settlement_order_id")
    private Long purchaseSettlementOrderId;

    /**
     * 商品SKU ID
     */
    @TableField(value = "goods_sku_id")
    private Long goodsSkuId;

    /**
     * 采购数量
     */
    @TableField(value = "purchase_count")
    private Long purchaseCount;

    /**
     * 采购价格
     */
    @TableField(value = "purchase_price")
    private BigDecimal purchasePrice;

    /**
     * 合格商品的数量
     */
    @TableField(value = "qualified_count")
    private Long qualifiedCount;

    /**
     * 到货的商品数量
     */
    @TableField(value = "arrival_count")
    private Long arrivalCount;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_PURCHASE_SETTLEMENT_ORDER_ID = "purchase_settlement_order_id";

    public static final String COL_GOODS_SKU_ID = "goods_sku_id";

    public static final String COL_PURCHASE_COUNT = "purchase_count";

    public static final String COL_PURCHASE_PRICE = "purchase_price";

    public static final String COL_QUALIFIED_COUNT = "qualified_count";

    public static final String COL_ARRIVAL_COUNT = "arrival_count";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}